FROM mysql:latest
MAINTAINER Tanweiping <tanweiping1990@163.com>

ENV MYSQL_DATABASE='dfs'

ADD ./charset.cnf /etc/mysql/conf.d/
ADD ./files/schema.sql /docker-entrypoint-initdb.d/

RUN  echo "Asia/Shanghai" > /etc/timezone
RUN  dpkg-reconfigure -f noninteractive tzdata